<template>
	<view class="combody">
		<view class="head flex-row">
			<view class="headtetx ischoose" style="">
				{{title?title:'推荐医生'}}
				<view class="linebox">
				</view>
			</view>
		</view>
		<view class="doctlist" v-for="(item,index) in doctorlist" :key="index">
			<view class="doctitem align-center flex-row" @click="todocdetail(item.id)">
					<img :src="$config.baseUrl + item.url" alt="" style="width: 248rpx;height: 248rpx; border-radius: 24rpx;flex-shrink: 0;" />
				<view class="docthing flex1">
					<view class="color303b39" style="font-weight: 800;font-size: 36rpx;line-height: 48rpx;">
						{{item.shortName}}
					</view>
					<view class="" style="color:#7E8987;font-size: 28rpx;line-height: 48rpx;font-weight: 800;">
						{{item.name}}
					</view>
					<view class="" style="color:#7E8987;font-size: 28rpx;line-height: 48rpx;font-weight: 800;">
						{{item.technicalTitle}}
					</view>
					<view class="br8 mt16"
						style="width:100%;padding: 8rpx 16rpx;background: #EDFCF9;color: #00977C;">
						<view class="fz24 fwbold" style="line-height: 40rpx;">
							医生擅长
						</view>
						<view class="fz28" style="line-height: 40rpx;">
							{{item.specialty}}
						</view>
					</view>
				</view>

			</view>
		</view>
	</view>
</template>

<script>
	
	export default {
		props:['title','doctorlist'],
		data() {
			return {
			
			}
		},
		onLoad() {
		},
		methods:{
			todocdetail(id){
				uni.navigateTo({
					url:'/pages/knowledge/docdetail?id='+id
				})
			},
			
			
		}
	}
</script>

<style lang="scss" scoped>
	.combody {
		background: #fff;
		border-radius: 32rpx;
		margin-top: 16rpx;

		.head {
			height: 110rpx;
			padding: 10rpx 32rpx 0;
			border-bottom: 1px solid #D7DDDC;

			.headtetx {
				font-size: 40rpx;
				display: flex;
				align-items: center;
				height: 100rpx;
				margin-right: 40rpx;
				position: relative;

				.linebox {
					position: absolute;
					bottom: 0;
					width: -webkit-fill-available;
					height: 10rpx;
					background: #00D9B2;
					border-radius: 50rpx;
				}
			}

			.ischoose {
				color: #303B39;
				font-weight: 800;
			}

			.nochoose {
				color: #576260;
				font-weight: 400;
			}
		}

		.doctlist {
			padding: 0rpx 24rpx ;
			background: #fff;
			overflow: hidden;
			border-radius: 32rpx;

			.doctitem {
				margin-bottom: 40rpx;

				.docthing {
					padding: 19rpx 0;
					margin-left: 18rpx;
				}
			}
		}
	}
</style>